import { AppRouteModule, AppRouteRecordRaw } from "/@ts/router/types";

const routeComponents: AppRouteRecordRaw[] = [
  // {
  //   path: "/Scalebox",
  //   name: "Scalebox",

  //   meta: {
  //     title: "Scalebox",
  //   },
  //   query: {},
  //   component: () => import("/@/components/Scalebox/index.vue"),
  // },

 

 

];
const routeMenuList: AppRouteRecordRaw[] = [
  ...routeComponents,
  {
    path: "/system/dict-data",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:dict:list'],
    children: [
      {
        path: "index/:dictId(\\d+)",
        component: () => import("/@/views/system/dict/data.vue"),
        name: "Data",
        meta: { title: "字典数据" },
      },
    ],
  },
  {
    path: "/monitor/job-log",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:dict:list'],
    children: [
      {
        path: "index/:jobId(\\d+)",
        component: () => import("/@/views/monitor/job/log.vue"),
        name: "JobLog",
        meta: { title: "调度日志" },
      },
    ],
  },
  {
    path: "/system/role-auth",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:role:edit'],
    children: [
      {
        path: "user/:roleId(\\d+)",
        component: () => import("/@/views/system/role/authUser.vue"),
        name: "AuthUser",
        meta: { title: "分配用户" },
      },
    ],
  },
  {
    path: "/system/user-auth",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:role:edit'],
    children: [
      {
        path: "role/:userId(\\d+)",
        component: () => import("/@/views/system/user/authUser.vue"),
        name: "AuthRole",
        meta: { title: "分配角色" },
      },
    ],
  },
];
export default routeMenuList;
